import { _HttpClient } from '@delon/theme';
import { SFSchema, SFComponent } from '@delon/form';
import { Component, OnInit, ViewChild } from '@angular/core';
import { HttpService, GridComponent, SupDic } from 'lbf';
import { STColumn, STComponent, STColumnButton, STPage } from '@delon/abc';

@Component({
  selector: 'app-sybx-ylpz',
  templateUrl: './ylpz.component.html',
})
export class SybxYlpzComponent implements OnInit {
  searchSchema: SFSchema = {
    properties: {
      AAC002: {
        type: 'string',
        title: '领取人身份证',
      },
      AAC003: {
        type: 'string',
        title: '领取人姓名',
      },
    },
    ui: {
      spanLabelFixed: 80,
      grid: {
        span: 6,
      },
    },
  }; 
  params = { sname: 'ylpz_list', form: {} };
  @ViewChild('st', { static: false }) st: GridComponent;
  @ViewChild('sf', { static: false }) sf: SFComponent;
  
  columns: STColumn[] = [
    { title: '补换证历本类型', index: 'AAC050' },
    { title: '领取对象', index: 'BKE570' },
    { title: '领取人身份证', index: 'AAC002' },
    { title: '领取人姓名', index: 'AAC003' },
    { title: '统筹区编码 ', index: 'AAB301' },
  ];
  constructor(private http: _HttpClient,
    private lbservice: HttpService,
    ) { }
    ylpz_query() {
      this.st.reload(this.sf.value);
    }
  ngOnInit() { }
}
